﻿using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;

namespace TulingMember.Core
{
    /// <summary>
    /// 。
    /// </summary> 
    [TableAudit]
    public class cts_PurchaseOrderDetail : DEntityTenant
    {  

        public long PurchaseOrderId { get; set; }

        public cts_PurchaseOrder PurchaseOrder { get; set; }

        public long ProductId { get; set; }

        public cts_Product Product { get; set; }

        public string ProductName { get; set; }

        public string ProductCode { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Specification { get; set; }
        /// <summary>
        /// 入库数量
        /// </summary>
        public int Num { get; set; }

        /// <summary>
        /// 入库价格。
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 合计
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 备注
        /// </summary>

        public string Remark { get; set; }
        /// <summary>
        /// 批号/国药准字
        /// </summary>
        public string GuoyaoZhunzi { get; set;}
        /// <summary>
        /// 生产企业/厂家
        /// </summary>
        public string Manufacturer { get; set; }
        /// <summary>
        /// 剂型
        /// </summary>
        public string Formulations { get; set; }
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime? ManufacturingDate { get; set; }
        /// <summary>
        /// 有效期至
        /// </summary>
        public DateTime? ExpirationDate { get; set; }
    }
}